package com.jxdinfo.hussar.activitidemo.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jxdinfo.hussar.activitidemo.bean.TdbYjMCallRecord;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2019-05-23
 */
public interface ITdbYjMCallRecordService extends IService<TdbYjMCallRecord> {
    Page<TdbYjMCallRecord> selectByCondition(Page<TdbYjMCallRecord> regulationsInfo, TdbYjMCallRecord info);
    void updateCallRecord(TdbYjMCallRecord callRecord);
    void updateBetchCallRecord(String recordJsonObj);
    void insertCallRecord(TdbYjMCallRecord callRecord);
    Integer getNotDealCallNum();

    /**
     * 更新状态前，判断是否未处理
     * 如果未处理予以更新
     * true:更新
     * false:通知用户应急已被处理
     * @param callRecord
     */
    Boolean updateAndCheckCallRecord(TdbYjMCallRecord callRecord);
}
